package com.ssy.lingxi.settle.accounts.controller;

import com.ssy.lingxi.common.controller.BaseController;
import com.ssy.lingxi.common.response.PageData;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.settle.accounts.model.vo.request.ApplyAmountQueryVO;
import com.ssy.lingxi.settle.accounts.model.vo.response.ApplyAmountPageVO;
import com.ssy.lingxi.settle.accounts.service.IApplyAmountService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * @menu 平台结算管理-业务请款协同-供应方
 * @author 彭冬冬
 * @date 2021/12/27
 **/
@RestController
@RequestMapping("/settle/accounts/business/apply/amount/teamwork")
public class ApplyAmountTeamworkController extends BaseController {

    @Resource
    private IApplyAmountService applyAmountService;

    /**
     * 分页查询请款单列表-收款方为当前登录会员（会员角色为服务提供者）
     * @author Saske
     */
    @RequestMapping(value = "vendor/apply/amount/list",method = RequestMethod.GET)
    public Wrapper<PageData<ApplyAmountPageVO>> VendorApplyAmountList(HttpServletRequest request, ApplyAmountQueryVO queryVO){
        return applyAmountService.pageVendorApplyAmount(getSysUser(request),queryVO);
    }
}
